package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.file.contentVo;
import cn.com.thinvent.dispatch.entity.file.filevo;
import cn.com.thinvent.dispatch.entity.file.tagVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface PdfFileMapper extends BaseMapper<filevo> {
    public Long insertfile(filevo vo) throws DataAccessException;
    public Long insertfilecontent(contentVo vo) throws DataAccessException;

    filevo queryById(@Param("id") Integer id);

    List<tagVo> getTag(@Param("tag")String tag);

    void insertTag(tagVo vo);

    List<filevo> listByTagid(@Param("tagid")Integer tagid);

}